import 'package:flutter/material.dart';

void main() {
  return runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '测试card',
      theme: ThemeData(primarySwatch: Colors.lightBlue),
      home: Scaffold(
        appBar: AppBar(
          title: Text('testCard'),
          centerTitle: true,
        ),
        body: MyCard(),
      ),
    );
  }
}

class MyCard extends StatefulWidget {
  @override
  MyCardState createState() {
    return MyCardState();
  }
}

class MyCardState extends State<MyCard> {
  @override
  Widget build(BuildContext context) {
    return Text('222');
  }
}
